#ifndef SPELLOGICA_H
#define SPELLOGICA_H

// Run game logic. Returns 0 when there are no errors.
// Passed float is the orientation of the gravity.
int runSpelLogica(float orientation);

// Returns the top left position of the ball.
int getBallX(void);
int getBallY(void);

// Returns the ball vector
float getBallVectorX(void);
float getBallVectorY(void);

// Sets the map to play on.
// Pixels are in RGB888 format (24bit/px).
void setSpeelveld(
	void* pixels,
	unsigned int width,
	unsigned int height,
	unsigned int startX,
	unsigned int startY,
	unsigned int endX,
	unsigned int endY
);

// Sets the bal image. Pixels are in RGB888 format (24bit/px).
// The bal dimensions should be uneven and equal. (e.g. 7x7)
void setBall(void* pixels, unsigned int width, unsigned int height);


#endif // SPELLOGICA_H
